package com.vken.blog.dao.hibernate;

import java.util.List;

import com.vken.blog.dao.LinkDao;
import com.vken.blog.model.Link;

public class LinkDaoHibernate extends GenericDaoHibernate<Link, Integer> implements LinkDao {
	public List<Link> getLinksByBlogId(Integer id) {
		return getHibernateTemplate().find(
				"from Link as l where l.blog.id=? order by l.displayOrder desc,l.id desc",
				new Object[] { id });
	}
}
